﻿<MudDateRangePicker @bind-DateRange="_dateRange" />

<MudTable T="ComplexObject" Items="_simulatedServerData" Filter="Filter" MultiSelection @bind-SelectedItems="_selectedItems" Comparer="_comparer" Dense>
    <HeaderContent>
        <MudTh>Id</MudTh>
        <MudTh>Name</MudTh>
        <MudTh>DateTime</MudTh>
        <MudTh>X</MudTh>
        <MudTh>Y</MudTh>
    </HeaderContent>
    <RowTemplate>
        <MudTd>@context.Id</MudTd>
        <MudTd>@context.Name</MudTd>
        <MudTd>@context.DateTime</MudTd>
        <MudTd>@context.NestedObject.X</MudTd>
        <MudTd>@context.NestedObject.Y</MudTd>
    </RowTemplate>
    <PagerContent>
        <MudTablePager HideRowsPerPage />
    </PagerContent>
</MudTable>

<MudText>SelectedItems { @string.Join(", ", _selectedItems.Select(x => x.Id)) }</MudText>